﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sabloane_de_proiectare.Memento
{
    public class State
    {
        public ObservableCollection<GridElements> source { get; set; }

        public State() {
               source = new ObservableCollection<GridElements>();
           }
        public void saveState(GridElements state) {
            source.Add(state);
        }
        public GridElements loadState(int poz) {
            return source.ElementAt(poz);
        }
    }
}
